package net.zoneland.data.dataprofiling.common.service;

import net.zoneland.data.dataprofiling.common.domain.FileEntity;
import net.zoneland.data.dataprofiling.common.domain.FileQuery;
import net.zoneland.data.dataprofiling.common.utils.PageUtils;
import org.springframework.data.domain.Page;

import java.util.Map;

/**
 * 文件上传
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2017-09-19 16:02:20
 */
public interface FileService {
	
	FileEntity get(Long id);

	PageUtils list(int limit, int size, FileQuery fileQuery);
	
	int count(Map<String, Object> map);
	
	int save(FileEntity sysFile);
	
	int update(FileEntity sysFile);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	/**
	 * 判断一个文件是否存在
	 * @param url FileDO中存的路径
	 * @return
	 */
    Boolean isExist(String url);
}
